<?php

#[Params("Foo", "argument")]
#[See("https://xxx/xxx/xxxxxxxxx.html","aaaaaa")]
function dummy ($argument,$xxxx){}

$reflector = new ReflectionFunction("dummy");

var_dump($reflector->getAttributes("See")[0]->getName());
var_dump($reflector->getAttributes("Params")[0]->getArguments());

#[Attribute(Attribute::TARGET_FUNCTION)]
class MyAttribute{
    public function __construct($name, $value)
    {
        var_dump($name, $value);
    }
}

#[MyAttribute("lihao", "xxxxxxxx")]
function solve($argument){

}

$reflector = new ReflectionFunction('solve');
var_dump($reflector->getAttributes("MyAttribute")[0]->newInstance());